#ifndef MATHTOOLS_H
#define MATHTOOLS_H
#include <stdio.h>
#include <string.h>

class CSavaCharData {
private:
	FILE *m_pHandle;
	char m_cFileName[256];
	char m_cMode[8];

public:
	CSavaCharData(char *fileName, char *mode);
	~CSavaCharData();
	FILE *openFile(char *fileName, char *mode);
	bool closeFile();
	int writeData(unsigned char *data, int nProtocolLen);
	int fileFlush();
};

#endif // MATHTOOLS_H